package com.poisonh.unifiedauth.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Toast工具类
 * Created by PoisonH on 2016/6/21.
 */
public class ToastUtils
{
    //Toast的对象！
    private static Toast toast = null;

    public static void showToast(Context mContext, String id)
    {
        if (toast == null)
        {
            toast = Toast.makeText(mContext.getApplicationContext(), id, Toast.LENGTH_SHORT);
        } else
        {
            toast.setText(id);
        }
        toast.show();
    }
}
